Skip to content

Conversation

@oroztocil
Copy link
Member

@oroztocil oroztocil commented Apr 11, 2025

  • Relaxes the condition in Microsoft.JSInterop.ts so that you can retrieve an IJSObjectReference pointing to a JavaScript function value (either via GetValueAsync<IJSObjectReference> or InvokeAsync<IJObjectReference> call to a JS function that returns a function). You can use such reference e.g. to set a handler for something on the JS-side.

  • Adds a case to the test app that shows that this works.

@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Apr 11, 2025
@oroztocil oroztocil requested a review from javiercn April 11, 2025 14:55
@oroztocil oroztocil marked this pull request as ready for review April 11, 2025 16:11
@oroztocil oroztocil requested a review from a team as a code owner April 11, 2025 16:11
@oroztocil oroztocil merged commit fc4c09e into main Apr 15, 2025
27 checks passed
@oroztocil oroztocil deleted the oroztocil/js-interop-function-object-reference branch April 15, 2025 09:41
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview4 milestone Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants